package ai.peanut.consumer.a.controller;

import ai.peanut.dubbo.inter.a.ATestService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestControllerFailsafe {
////超时 返回空 记录日志，接口错误抛出异常，记录错误日志
//    @Reference(version = "1.0.0",cluster = "failsafe")
//    private ATestService aTestService;
//
//
//    @GetMapping(value="/dubbo2")
//    public String sayHello(){
//
//        String result = aTestService.demo(555);
//        return result;
//    }
}
